
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("pure_menus", {
        id: {
            type: Sequelize.INTEGER,
            notNull: true,
            primaryKey: true,
            autoIncrement: true
        },
        menu_type: {
            type: Sequelize.INTEGER(1),
            comment:'菜单类型 0:菜单 1:iframe 2:外链 3:按钮'
        },
        parent_id: {
            type: Sequelize.INTEGER(11),
            comment: '父级ID',
        },
        title: {
            type: Sequelize.STRING(50),
            comment:'菜单名称'
        },
        name: {
            type: Sequelize.STRING(50),
            comment:'路由名称'
        },
        path: {
            type: Sequelize.STRING(250),
            comment:'路由路径'
        },
        component: {
            type: Sequelize.STRING(250),
            comment:'组件路径'
        },
        rank: {
            type: Sequelize.INTEGER(10),
            comment:'排序'
        },
        redirect: {
            type: Sequelize.STRING(250),
            comment:'重定向路径'
        },
        icon: {
            type: Sequelize.STRING(100),
            comment:'图标'
        },
        extra_icon: {
            type: Sequelize.STRING(100),
            comment:'右侧图标'
        },
        enter_transition: {
            type: Sequelize.STRING(100),
            comment:'进入动画'
        },
        leave_transition: {
            type: Sequelize.STRING(100),
            comment:'离开动画'
        },
        active_path: {
            type: Sequelize.STRING(250),
            comment:'激活菜单'
        },
        auths: {
            type: Sequelize.STRING(250),
            comment:'权限标识'
        },
        frame_src: {
            type: Sequelize.STRING(250),
            comment:'iframe路径'
        },
        frame_loading: {
            type: Sequelize.BOOLEAN,
            comment:'加载动画 0:开启 1:关闭'
        },
        show_link: {
            type: Sequelize.BOOLEAN,
            comment:'显示 0:开启 1:关闭'
        },
        show_parent: {
            type: Sequelize.BOOLEAN,
            comment:'显示父级 0:开启 1:关闭'
        },
        keep_alive: {
            type: Sequelize.BOOLEAN,
            comment:'缓存 0:开启 1:关闭'
        },
        hidden_tag: {
            type: Sequelize.BOOLEAN,
            comment:'隐藏标签 0:开启 1:关闭'
        },
        fixed_tag: {
            type: Sequelize.BOOLEAN,
            comment:'固定标签 0:开启 1:关闭'
        },
    },{
        comment:'菜单表', 
    });
};
